package com.tang.common.utils;

import org.apache.shiro.SecurityUtils;

public class UserUtils {
    public static String getCurrentUserName(){
        Object principal = SecurityUtils.getSubject().getPrincipal();
        return JwtUtils.getUserNameFromToken((String) principal);
    }
}
